package ui;

import presenter.IOpenDoorPresenter;
import utils.PresenterManager;
import view.IOpenDoorCallback;


public class test  implements IOpenDoorCallback{

    static IOpenDoorPresenter iOpenDoorPresenter;
    public test() {

        iOpenDoorPresenter= PresenterManager.getOutInstance().getOpenDoorPresenter();
        iOpenDoorPresenter.registerViewCallback(this);
    }
    public void openTheDoor()
    {

        iOpenDoorPresenter.openTheDoor();//开门
    }
    @Override
    public void onOpening(String result) {
        System.out.printf(result);
    }

    @Override
    public void onOpenedDoor(String result) {

        System.out.printf("门已打开");
    }
}
